﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace tsgl
{
    public partial class selectPenalty : Form
    {
        public selectPenalty()
        {
            InitializeComponent();
        }

        public string getpenalty()
        {
            return this.dataGridView1[0,dataGridView1.CurrentCell.RowIndex].Value.ToString();
        }

        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
        }

        private void selectPenalty_Load(object sender, EventArgs e)
        {
            this.dataGridView1.DataSource = bookDbClass.ExecuteDataTable("select 借阅者姓名 from 待罚款信息");
            this.dataGridView1.Columns[0].Width = 130;
        }

    }
}